﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EITSurferInfinityLib
{
   public delegate void SimpleDataEvent(object sender,EventArgsSimpleData e);
   public delegate void RawDataFramesEvent(object sender, EventArgsRawDataFrames e);
   public delegate void RawDataEvent(object sender, EventArgsRawData e);
   public delegate void MessageEvent(object sender, EventArgsMsg e);
   public delegate void ConnectedEvent(object sender, EventArgs e);

   public  interface IDriver
    {
        void Start();
        void Stop();
        int GetSize();
        string GetCode();
        string GetDataHeader();
        void Connect();
        void Disconnect();
        bool IsConnected();
        void Send(string s);
        void ConnectP2P();
        void Reset();
        DeviceInfo GetDeviceInfo();

        event RawDataFramesEvent OnRawDataFrames;
        event SimpleDataEvent OnSimpleData;
        event RawDataEvent OnRawData;
        event MessageEvent OnMessage;
        event ConnectedEvent OnConnected;
    }

  

}
